<template>
  <section class="pointsRule">
    <ul id="list">
      <li style="z-index: 5" :class="{ select: active == 1 }">
        <b
          ><span><ins>1</ins>基本信息</span><i></i
        ></b>
      </li>
      <li style="z-index: 4" :class="{ select: active == 2 }">
        <b
          ><em class="before"></em><span><ins>2</ins>服务入参配置</span><i></i
        ></b>
      </li>
      <li style="z-index: 3" :class="{ select: active == 3 }">
        <b
          ><em class="before"></em><span><ins>3</ins>接口配置</span><i></i
        ></b>
      </li>
      <li style="z-index: 2" :class="{ select: active == 4 }">
        <b
          ><em class="before"></em><span><ins>4</ins>提交审核</span><i></i
        ></b>
      </li>
    </ul>
  </section>
</template>

<script>
import { reactive, ref, onMounted, defineComponent } from "vue";
export default defineComponent({
  props: ["active"],
  setup() {},
});
</script>

<style lang="scss" scoped>
.pointsRule ul {
  overflow: hidden;
}
.pointsRule ul li.select {
  background-color: #2e69eb;
  color: rgb(255, 255, 255);
  i {
    background-color: #2e69eb;
    border: none;
  }
  ins{
    background: white;
    color: #2e69eb;
  }
}
.pointsRule ul li {
  display: list-item;
  text-align: center;
  float: left;
  margin: 10px 5px 0;
  background: #f6f9ff;
  border-top: 1px solid #f6f9ff;
  height: 45px;
  position: relative;
  width: 23%;
  color: #2e69eb;
  &:last-child i {
    display: none;
  }
}
.pointsRule ul li ins {
  text-decoration: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  background: #2e69eb;
  color: white;
  margin-right: 10px;
}
.pointsRule ul li b {
  display: block;
  padding: 13px 0;
  font-weight: normal;
}
.pointsRule ul li span {
  vertical-align: middle;
  height: 18px;
  line-height: 18px;
  display: inline-block;
  overflow: hidden;
  text-align: center;
  margin: 0 20px;
  font-size: 16xp;
}
.pointsRule ul li i {
  float: right;
  border: #f6f9ff solid;
  border-width: 1px 1px 0 0;
  width: 32px;
  height: 32px;
  margin: -6px -16px 0px 10px;
  top: 2px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  background: url("") #f6f9ff;
  -moz-transform: rotate(45deg); /* Firefox浏览器 */
  -ms-transform: rotate(45deg);
}
.pointsRule ul li em.before {
  border: #f6f9ff solid;
  border-width: 1px 1px 0 0;
  width: 32px;
  height: 32px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  float: left;
  margin: -6px 10px 0px -17px;
  top: 2px;
  background: url("") #fff;
}
</style>
